@CHARSET "UTF-8";

/*
	Suggested order:
--------------------------------------------------
	display, position, float, clear
	width, height
	margin, padding
	border, background
	color, font, line-height, text-align, text-decoration
	vertical-align, white-space, overflow, cursor, list-style
*/

HTML, BODY {
	padding:0;
	margin:0;
}

BODY {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 100%;
	background: #ccc url('./irongrip.png');
}

a, a:visited {
	color: #0099ff;
	text-decoration: none;
}

.bold {
	font-weight: bold;
}

#game {
	position: relative;
	width: 1020px;
	margin: 0px auto;
	font-size: 0.875em;
	background-color: #fff;
	padding: 10px;
	border: 1px solid black;
	overflow: hidden;
	background: url('./game-page-bg.png');
}

#game .block {
	float: left;
	width: 40px;
	height: 40px;
	background-color: #0099ff;
	border: 1px solid #0066cc; 
	/* border: 1px solid #088ac0;*/
	font-size: 0;
}

#game #loading {
	display: none;
	width: 140px;
	/*background: url("./loader.gif") 0 20px no-repeat;*/
	margin: 20px auto;
}

#game #error {
	display: none;
	width: 140px;
	margin: 20px auto;
	color: #cc0000;
	font-weight: bold;
}

#game #canvas {
	position: relative;
	float: left;
	width: 420px;
	min-height: 420px;
	border: 1px solid #000;
	
	/* background: url("./table-bg.png"); */
	
}

#game .enemytext {
	font-size: 1.375em;
	text-transform: uppercase;
	font-weight: bold;
	color: #333;
	line-height: 420px;
	text-align: center;
}

#game .enemy-left-message {
	width: 300px;
	font-size: 1.125em;
	font-weight: bold;
	color: #000;
	text-align: center;
	margin: 200px auto 0 auto;
}
#game #enemy {
	position: relative;
	float: left;
	width: 420px;
	min-height: 420px;
	margin-left: 10px;
	border: 1px solid black;
	background-color: #ccc;
}

#game .fleet {
	position: absolute;
	border: 1px solid transparent;
	z-index: 10;
	/*cursor: move;*/
}

#game #buttons {
	float: left;
	width: 150px;
	margin: 0 0 0 10px;
	text-align: center;
	
}

#game #auto-place-button a, #auto-place-button a:visited{
	display: block;
	width: 140px;
	background-color: #000;
	font-family: Helvetica, Calibri, Arial, sans-serif, Verdana, Tahoma;
	font-weight: bold;
	font-size: 1.0em;
	text-transform: uppercase;
	text-decoration: none;
	color: #ccc;
	padding: 5px;
	border-radius: 7px;
	margin-top: 50px;
}

#game #auto-place-button a:hover {
	background-color: #333;
	color: #fff;
	border-radius: 7px;
	padding: 5px;
}

#game .startGameButton a, .startGameButton a:visited{
	display: block;
	width: 200px;
	background-color: #00aff0;
	font-family: Helvetica, Calibri, Arial, sans-serif, Verdana, Tahoma;
	font-weight: bold;
	font-size: 1.5em;
	text-transform: uppercase;
	text-decoration: none;
	color: #dcf0f8;
	padding: 10px;
	border-radius: 7px;
	text-align: center;
	margin: 0 auto;
}

#game .startGameButton a:hover {
	background-color: #33bff3;
	color: #fff;
	border-radius: 7px;
}

#game .start a, #game .start a:visited {
	display: block;
	margin-top: 20px;
	background-color: #2dc1f8;
	font-family: Helvetica, Calibri, Arial, sans-serif, Verdana, Tahoma;
	font-weight: bold;
	font-size: 1.5em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	border-radius: 7px;
	padding: 5px;
}

#game .start a.start-game {
	width: 140px;
}

#game .start a.create-game {
	margin: 20px auto;
}

#game .start a:hover {
	background-color: #26afe2;
}

#game .rotate {
	line-height: 32px;
	margin-top: 20px;
}
#game .rotate a, #game .rotate a:visited {
	display: block;
	width: 140px;
	font-family: Helvetica, Calibri, Arial, sans-serif, Verdana, Tahoma;
	font-weight: bold;
	font-size: 1.0em;
	text-transform: uppercase;
	text-decoration: none;
	color: #ccc;
	border-radius: 7px;
	padding: 5px;
	text-align: center;
	line-height: 32px;
}

#game .rotateImg {
	display: inline-block;
	width: 32px;
	height: 32px;
	background-repeat: no-repeat;
	background-image: url("./rotate-disabled.png");
	vertical-align: middle;
}

#game .forfeit-button a, #game .forfeit-button a:visited {
	display: block;
	margin-top: 20px;
	width: 140px;
	background-color: #666666;
	font-family: Helvetica, Calibri, Arial, sans-serif, Verdana, Tahoma;
	font-weight: bold;
	font-size: 1.75em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	border-radius: 7px;
	padding: 5px;
}

#game .forfeit-button a:hover {
	background-color: #660000;
}

#game .drag {
	postition: relative;
}

.clear {
	clear: both;
}

#game #buttons .enemy-score{
    position: absolute; 
    bottom: 10px;
    height: 40px;  
    width: 130px;
    background-color: #ff6600;
    padding: 10px;
    line-height: 40px;
    color: #fff;
    font-size: 2.0em;
    border-radius: 7px;
}

#game #buttons .score {
    width: 130px;
    height: 40px;
    background-color: #000;
    padding: 10px;
    line-height: 40px;
    color: #fff;
    font-size: 2.0em;
    border-radius: 7px;
}
#game .missed {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: url("lask-mooda.png");
    z-index: 99;  
}

#game .hit {
    position: absolute;
    top: 127;
    left: 127;
    width: 40px;
    height: 40px;
    background: url("lask-pihta.png");
    z-index: 99;
}

#game .sinked {
    position: absolute;
    z-index: 999;
}

#game .juhis {
	position: absolute;
	bottom: 40px;
	height: 152px;
    width: 150px;
}

#game .whos_turn {
	display: block;
	width: 140px;
	font-family: Helvetica, Calibri, Arial, sans-serif, Verdana, Tahoma;
	font-weight: bold;
	font-size: 1.375em;
	text-transform: uppercase;
	text-decoration: none;
	color: #000;
	padding: 5px;
	text-align: center;
	margin-top: 100px;
}

#game .red {
	color: red;
}
#game .green {
	color: green;
}

#game #lobby {
	width: 300px;
	min-height: 420px;
	position: relative;
	float: left;
	padding: 5px 0;
	background-color: #ffffff;
	border-radius: 7px;
	-moz-border-radius: 7px;
	border: 1px solid #ccc;
}

#game #lobby ul {
	list-style: none;
	padding: 0px;
	margin: 0px;
}

#game #lobby ul li {
	background-color: #66ccff;
	padding: 5px;
	margin: 5px;
	border-radius: 5px;
}

#game #lobby a, #game #lobby a:visited {
	display: block;
	color: #fff;
}

#game #lobby li:hover {
	background-color: #8bd3f9;
}

#game .title {
	font-size: 1.125em;
	color: #000;
	font-weight: bold;
	text-align: center;
	padding: 5px;
	border-bottom: 1px solid #ccc;
	margin: 0 5px;
}

#game #lobby .gameList {
	height: 390px;
	overflow: auto;
	/*background-color: #0099ff;*/
}

#game #lobby li.full {
	background-color: #999;
	color: #fff;
}
#game .col-left {
	float: left;
	width: 345px;
}

#game .col-center {
	position: relative;
	float: left;
	width: 300px;
	padding: 5px 0;
	margin-right: 50px;
}

#game .col-right {
	position: relative;
	float: right;
	width: 325px;
	text-align: center;
	height: 200px;
}

#game .announcement .announcement-text {
	padding: 7px;
	font-weight: bold;
	color: #006699;
}

#game #stats {
	float: right;
	width: 300px;
	background-color: #fff;
	padding: 5px 0;
	border-radius: 7px;
	-moz-border-radius: 7px;
	border: 1px solid #ccc;
}

#game table.stats-table {
	table-layout: fixed;
	width: 100%;
	padding: 0; 
	margin: 5px 0 0 0;
	color: #666;
	background-color: #fff;
	border: 0px;
	border-spacing: 0px;
	border-collapse: collapse;
}

#game table.stats-table th {
	width: 175px;
	text-align: right;
	color: #666;
}

#game table.stats-table td {
	text-align: left;
}

#game table.stats-table td, table.stats-table th {
	border-spacing: 0px;
	padding: 4px;
}
.info-icon {
	width: 16px;
	height: 16px;
	text-indent: 20px;
	background: url('info-icon.png') no-repeat;
	display: block;
	padding-bottom: 7px;
}

#content {
	width: 1020px;
	margin: 0px auto;
	font-size: 0.875em;
	padding: 10px;
	background: #00aff0 url("welcome-page-bg.png") repeat-x;
	min-height: 400px;
	border-radius: 7px;
}

#content .col-left {
	float: left;
	width: 475px;
	margin-top: 20px;
}

#content .col-center {
	position: relative;
	float: left;
	width: 70px;
	position: relative;
	padding: 40px 0 40px 0;;
}

#content .col-right {
	position: relative;
	float: left;
	width: 475px;
	text-align: center;
	height: 200px;
}

#content .col-center .or-option {
	font-family: Arial, sans-serif;
	position: absolute;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 1.5em;
	color: #1499ca;
	background-color:  #38c1f3;
	margin-top: 120px;
	padding: 10px;
}

#content .col-center .or-line {
	width: 2px;
	height: 300px;
	margin: auto;
	background-color: #1499ca;
}
#content .welcome-message {
	text-align: center;
	margin-bottom: 55px;
}

#content .welcome-message img {
	border: 0px;
}

#content .game-start-instruction {
	text-align: center;
	margin: 50px 0 20px 0;
}

#content .game-start-instruction img{
	border: 0px;
}

#content .error {
	margin: 10px auto;
	padding: 5px;
	border: 1px solid #993333;
	border-radius: 5px;
	background-color: #f7d0d0;
	color: #cc0000;
	text-align: center;
	font-weight: bold;
}

#content .login {
	text-align: left;
	
	width: 300px;
	padding: 5px 5px 0 5px;
	border-radius: 7px;
	margin: 0 auto;
}

#content .login .button {
	width: 100%;
	border: 0px;
	background-color: #e8e8e8;
	color: #444444;
	font-family: Helvetica, Calibri, Arial, sans-serif, Verdana, Tahoma;
	font-weight: bold;
	font-size: 1.25em;
	text-decoration: none;
	border-radius: 7px;
	border: 1px solid #afafaf;
	padding: 10px 5px 7px 10px;
}

#content .login .button:hover {
	background-color: #f2f2f2;
	color: #444444;
}

#content .login .username-label {
	color: #006396;
	text-align: left;
	font-weight: bold;
}

#content .login .input {
	width: 275px;
	padding: 10px;
	border: 1px solid #1aa3d1;
	color: #999;
	font-size: 1.25em;
	text-align: center;
	-moz-box-shadow: inset 0px 1px 5px #888;
   	webkit-box-shadow: inset 0px 1px 5px #888;
   	box-shadow: inset 0px 1px 5px #888;
   	border-radius: 7px;
   	webkit-border-radius: 7px;
   	-moz-border-radius: 7px;
}

#content .login .input:focus {
	background-color: #f9f9f9;
	color: #000 !important;
	border: 1px solid #666;
	border-radius: 7px;
   	webkit-border-radius: 7px;
   	-moz-border-radius: 7px;
}

#content .login table.login-form {
	width: 100%;
	padding: 0;
}

#content .login-form td {
	padding: 0px 0 5px 0;
	text-align: left;
}

#content .fb-login-box {
	width: 200px;
	min-height: 20px;
	margin: 135px auto;
	padding: 5px;
	background-color: #fff;
	border-radius: 7px;
	-moz-broder-radius: 7px;
}

#content .fb-login-box a.facebook {
	float: left;
	width: 130px;
	min-height: 50px;
	padding: 15px 60px 5px 0px;
	background: url('./fb-logo.png') 140px 10px no-repeat;
}

#content .fb-login a, .fb-login a:visited {
	color: #000;
}
#content .fb-login .text {
	float: left;
	width: 125px;
}

#content .fb-login .fb-logo {
	float: left;
	width: 50px;
	height: 50px;
}

.right {
	float: right;
}

#wrapper {
	min-height: 100%;
    margin: 0 auto;
    padding: 150px 0 0 0;
    text-align: left;
}

#header {
	position: relative;
	width: 1020px;
	min-height: 38px;
	margin: 0 auto;
	padding: 10px 0;
}

#header h1 {
	position: absolute;
    top: 0px;
    width: 480px;
    height: 38px;
    color: #fff;
    margin: 0;
    padding: 0;
    z-index: 2;
}

#header h1 a {
	display: block;
    background: url('title.png') no-repeat;
    width: 480px;
    height: 38px;
    line-height: 99px;
    overflow: hidden;
    color: #fff;
    text-indent: -9999px;
}

#menu {
	position: absolute;
	top: 0; 
	right: 0;
	width: auto;
	height: 38px;
	padding: 10px 3px;
	-webkit-border-radius:4px;
    -moz-border-radius:4px;
    border-radius:4px;
}

#menu .user {
	float: left;
	width: 220px;
	color: #fff;
	text-align: right;
	padding: 0.5em;
	margin-right: 10px;
}
#menu ul {
	float: left;
	list-style: none;
	padding: 0; 
	margin: 0;
}

#menu li {
	float: left;
	display: block;
    border-left: 1px solid #333;
}

#menu ul li:first-child {
	border-left: 0px;
}
/* Hide from IE5-Mac \*/
#menu ul li a
{
float: none
}
/* End hide */

#menu li a, #menu li a:visited, #menu li a:hover {
    display: block;
    float: left;
    padding: 0.5em;
    color: #87d7f4;
    text-decoration: none;
    text-align: center;
    background-color: #212121;
}

#menu ul li:first-child a {
	-webkit-border-top-left-radius:4px;
    -moz-border-top-left-radius:4px;
    border-top-left-radius:4px;
    -webkit-border-bottom-left-radius:4px;
    -moz-border-bottom-left-radius:4px;
    border-bottom-left-radius:4px;
}

#menu ul li:last-child a {
	-webkit-border-top-right-radius:4px;
    -moz-border-top-right-radius:4px;
    border-top-right-radius:4px;
    -webkit-border-bottom-right-radius:4px;
    -moz-border-bottom-right-radius:4px;
    border-bottom-right-radius:4px;
}

#menu ul li a:hover {
	color: #fff;
	background-color: #a2a2a2;
}

#menu ul li:first-child a:hover {
	background-color: #a2a2a2;
	-webkit-border-top-left-radius:4px;
    -moz-border-top-left-radius:4px;
    border-top-left-radius:4px;
    -webkit-border-bottom-left-radius:4px;
    -moz-border-bottom-left-radius:4px;
    border-bottom-left-radius:4px;
}

#menu ul li:last-child a:hover {
	background-color: #a2a2a2;
	-webkit-border-top-right-radius:4px;
    -moz-border-top-right-radius:4px;
    border-top-right-radius:4px;
    -webkit-border-bottom-right-radius:4px;
    -moz-border-bottom-right-radius:4px;
    border-bottom-right-radius:4px;
}

#menu ul li a.special {
	color: #d5d5d5;
}